<!DOCTYPE html holiday "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>节假日</title>
    <link href="${base}/resources/css/common.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="${base}/resources/js/jquery.js"></script>
    <script type="text/javascript" src="${base}/resources/js/common.js"></script>
    <script type="text/javascript" src="${base}/resources/js/list.js"></script>
    [#--<script type="text/javascript">--]
        [#--$().ready(function () {--]
            [#--var date = $(".date");--]
            [#--date.each(function () {--]
                [#--var dayStr = $(this).siblings(".days").text();--]
                [#--var d = $(this).text();--]
                [#--var d1 = new Date(d);--]
                [#--var days = d1.getDate() - parseInt($.trim(dayStr));--]
                [#--d1.setDate(days);--]
                [#--var dateStr = d1.getFullYear() + "-" + d1.getMonth() + "-" + d1.getDate();--]
                [#--$(this).siblings(".addDate").html(dateStr);--]
            [#--});--]
        [#--});--]

    [#--</script>--]
</head>
<body>
<div class="path">
    <a href="${base}/common/index.html">首页</a> &raquo; 课表维护 <span>(总数：${page.total})</span>
</div>
<form id="listForm" action="list.html" method="get">
    <div class="bar">
        <a href="add.html" class="iconButton">
            <span class="addIcon">&nbsp;</span>新增
        </a>

        <div class="buttonWrap">
            <a href="javascript:;" id="deleteButton" class="iconButton">
                <span class="deleteIcon">&nbsp;</span>删除
            </a>

        </div>
    </div>
    <table id="listTable" class="list">
        <tr>
            <th class="check">
                <input type="checkbox" id="selectAll"/>
            </th>
            <th>
                <a href="javascript:;" class="sort" name="name">教室编号</a>
            </th>
            <th>
                <a href="javascript:;" class="sort" name="code">课程编号</a>
            </th>
            <th>
                <a href="javascript:;" class="sort" name="date">课程名</a>
            </th>

            <th>
                <a href="javascript:;" class="sort" name="days">任课老师</a>
            </th>
            <th>
                <a href="javascript:;" class="sort" name="days">教室地址</a>
            </th>
            <th>
                <span>操作</span>
            </th>
        [#--<th>--]
        [#--<span>其他操作</span>--]
        [#--</th>--]
        </tr>
    [#--[#list page as holiday]--]
        [#--<tr>--]
            [#--<td>--]
                [#--<input type="checkbox" name="ids" value="${holiday.id}"/>--]
            [#--</td>--]
            [#--<td>--]
            [#--${holiday.holidayName}--]
            [#--</td>--]
            [#--<td>--]
            [#--${holiday.holidayCode}--]
            [#--</td>--]
            [#--<td class="date">--]
            [#--${holiday.holidayDate?date}--]
            [#--</td>--]
            [#--<td class="days">--]
            [#--${holiday.advancesDays}--]
            [#--</td>--]
            [#--<td class="addDate">--]

            [#--</td>--]
            [#--<td>--]
                [#--<a href="view.html?id=${holiday.id}">[查看]</a>--]
                [#--<a href="edit.html?id=${holiday.id}">[编辑]</a>--]
            [#--</td>--]
        [#--</tr>--]
    [#--[/#list]--]
    </table>
[#--[@pagination pageNumber = page.pageNumber totalPages = page.totalPages]--]
    [#--[#include "/include/pagination.ftl"]--]
[#--[/@pagination]--]
</form>
</body>
</html>